package code.lewdy.app.user;

import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;

/**
 * 提现记录
 * @author Administrator
 * 
 */
@Table
@Entity
public class WithdrawRecord {
	
	private Long id;
	private Long ownerId; //申请人id
	private String ownerName; //申请人姓名
	private double amount; // 提现金额
	private String bankName;
	private String bankNo;
	private String bankAccountName;
	private Date createDate; // 申请时间
	private Date handleDate; // 受理时间
	private int status; // 0-未处理|
	private int results; //0-拒绝/未成功|1-提现成功

	@Id
	@GeneratedValue
	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public double getAmount() {
		return amount;
	}

	public void setAmount(double amount) {
		this.amount = amount;
	}

	public Date getCreateDate() {
		return createDate;
	}

	public void setCreateDate(Date createDate) {
		this.createDate = createDate;
	}

	@Temporal(TemporalType.TIMESTAMP)
	public Date getHandleDate() {
		return handleDate;
	}

	public void setHandleDate(Date handleDate) {
		this.handleDate = handleDate;
	}

	public int getStatus() {
		return status;
	}

	public void setStatus(int status) {
		this.status = status;
	}

	public void setOwnerId(Long ownerId) {
		this.ownerId = ownerId;
	}

	public Long getOwnerId() {
		return ownerId;
	}

	public void setOwnerName(String ownerName) {
		this.ownerName = ownerName;
	}

	public String getOwnerName() {
		return ownerName;
	}

	public void setBankAccountName(String bankAccountName) {
		this.bankAccountName = bankAccountName;
	}
	@Column(length=30)
	public String getBankAccountName() {
		return bankAccountName;
	}

	public void setBankNo(String bankNo) {
		this.bankNo = bankNo;
	}
	@Column(length=50)
	public String getBankNo() {
		return bankNo;
	}

	public void setBankName(String bankName) {
		this.bankName = bankName;
	}
	@Column(length=50)
	public String getBankName() {
		return bankName;
	}

	public void setResults(int results) {
		this.results = results;
	}

	public int getResults() {
		return results;
	}

}
